import instance from "@/utils/request";

export const all_list_menu = () => {
    let url = "system/menu/menus"
    return instance.get(url) 
}

export const tree_menu = () => {
    let url = '/system/menu/tree/menus'
    return instance.get(url)
}

export const add_menu = (data) => {
    let url = '/system/menu/menus'
    return instance.post(url,{...data})
}
